home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Keygen for VisionZ Crackme 1"
- ClientHeight = 1890
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 1890
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox UserName
- Height = 495
- Left = 840
- TabIndex = 0
- Top = 480
- Width = 3615
- End
- Begin VB.Label Label4
- Caption = "Serial :"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 1200
- Width = 615
- End
- Begin VB.Label Label3
- Caption = "Name :"
- Height = 495
- Left = 120
- TabIndex = 3
- Top = 480
- Width = 615
- End
- Begin VB.Label Label2
- Caption = "Keygen source for VisionZ Crackme 1 by SiFLyiNG"
- Height = 255
- Left = 480
- TabIndex = 2
- Top = 120
- Width = 3615
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 495
- Left = 840
- TabIndex = 1
- Top = 1200
- Width = 3615
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub UserName_Change()
- serial$ = ""
- For i = 1 To Len(UserName.Text)
- Char = Asc(Mid$(UserName.Text, i, 1))
- If Char < 65 Or (Char > 90 And Char < 95) Or Char > 122 Then 'char between A/Z et a/z
- GoTo next_char 'if not goto next char
- Else
- User_Name = User_Name & Trim(Chr(Char)) 'add char to user_name
- End If
- next_char:
- Next i
- User_Name = UCase(User_Name) 'name in uppercase
- Debug.Print User_Name ' just useful for degugging
- If Len(UserName.Text) < 3 Then 'len of the transformed code must be upper to 2
- Label1.Caption = "Here you will get the code"
- Exit Sub
- End If
-
- 'the loop for the beginning of the serial
- For i = 1 To Len(User_Name) - 1
- a = Asc(Mid(User_Name, i, 1))
- b = Asc(Mid(User_Name, i + 1, 1))
- serial$ = serial$ & Trim(Chr((b - 2) * 2 - a))
- Next i
- 'the calculation of the last char of the serial
- serial$ = serial$ & Trim(Chr(((Asc(Mid(User_Name, 2, 1)) - 2) * 2) - Asc(Mid$(User_Name, Len(User_Name), 1))))
- Label1.Caption = serial 'displays the serial in label1
- Clipboard.SetText serial 'copy the serial to clipboard
- End Sub
-